package com.ruihu.admin.common.validator.daterange;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DateRangeValidator.class)
public @interface DateRangeValidate {

    String startDateTimeGetter();

    String endDateTimeGetter();

    String message();

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
